-- GENERATED SPELL FOR [Stonevault Shaman] --


function spell0_2894(pUnit, Event) --@Fire Nova Totem,Self--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(8499,pUnit)
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_2894', 1, 1)
end

function spell1_2894(pUnit, Event) --@Healing Ward,Self--
pUnit:FullCastSpellOnTarget(5605,pUnit)
pUnit:RegisterEvent('Sorts_2894', 32000, 1)
end

function Sorts_2894(pUnit, Event)
local choix_sorts_2894 = math.random(0, 1)
if choix_sorts_2894 == 0 then
pUnit:RegisterEvent('spell0_2894', 1, 1)
end
if choix_sorts_2894 == 1 then
pUnit:RegisterEvent('spell1_2894', 1, 1)
end
end

function mob2894_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2894', math.random(1500, 3000), 1)
end

function mob2894_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2894_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2894_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2894, 1, 'mob2894_Action')
RegisterUnitEvent(2894, 2, 'mob2894_Leave')
RegisterUnitEvent(2894, 3, 'mob2894_Kill')
RegisterUnitEvent(2894, 4, 'mob2894_Die')
